package com.yunhe.device.domain.device;

import io.swagger.annotations.ApiModel;
import org.springframework.data.neo4j.annotation.QueryResult;

import java.util.HashMap;

/**
 * 设备对象
 * @author liuronglei
 */
@ApiModel(value = "Device", description = "设备对象")
@QueryResult
public class Device2021 extends HashMap<String, Object> {
    public String getType() {
        return (String)this.get("type");
    }
    public Long getId() {
        return ((Number)this.get("id")).longValue();
    }
    public Long getCode() {
        return (Long)this.get("code");
    }
    public String getName() {
        return (String)this.get("name");
    }
    public String getTitle() {
        return (String)this.get("title");
    }
    public void setId(Long id) {
        this.put("id", id);
    }
    public void setCode(Long code) {
        this.put("code", code);
    }
    public void setName(String name) {
        this.put("name", name);
    }
    public void getTitle(String title) {
        this.put("title", title);
    }
}
